
class FieldFormat:
    Type2format = {
        "int": ("i", "number"),
        "float": ("i", "number"),
        "number": ("i", "number"),
        "bool": ("?", "boolean"),
        "boolean": ("?", "boolean"),
        "varchar": ("s", "string"),
        "string": ("s", "string"),
        "text": ("s", "string"),
        "json": ("j", "any"),

        "list[int]": ("i[]", "number[]"),
        "list[number]": ("i[]", "number[]"),
        "list[float]": ("i[]", "number[]"),
        "number[]": ("i[]", "number[]"),
        "list[string]": ("s[]", "string[]"),
        "string[]": ("s[]", "string[]"),
    }